package com.bw.servlet;

import com.bw.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServletImp implements UserServlet{
    //业务层调用持久层的数据
    @Autowired
    UserDao userDao;
    @Override
    public void add() {
        userDao.add();
        System.out.println("我是业务层的添加方法");
    }
}
